package come.bjpowernode.javase.singleton;

public class SingletonEntity {
    private static SingletonEntity singletonEntity;

    private SingletonEntity(){

    }

    public static SingletonEntity getSingletonEntity(){
        if(null == singletonEntity){
            singletonEntity = new SingletonEntity();
        }
        return  singletonEntity;
    }
}
